<?php
namespace app\ctl;
/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

class indexCtl extends \core\FastPHP{
    
    
    
    public function index(){
        
        $User = new \app\model\userModel();
   
        $res = $User->getList('', 'user_name');
        p(class_parents(new indexCtl()));
        $data = 'hello world';
        $this->assign('data',$data);
        $this->assign('title','程序会传递给模板若干变量，你需要在模板里输出他们');
        $this->display('index');
    }
    
    public function test(){
        
        
        $this->assign('data','this is test page;');
        $this->display('test');
    }
}


